package com.ruoyi.crop.api.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 仓库表
 * @TableName src_warehouse
 */
@TableName(value ="src_warehouse")
@Data
public class Warehouse implements Serializable {
    /**
     * 仓库ID
     */
    @TableId(type = IdType.AUTO)
    private Integer warehouseId;

    /**
     * 仓库编号
     */
    private String warehouseCode;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 仓库排序号
     */
    private String warehouseSort;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 仓库负责人
     */
    private String person;

    /**
     * 省ID
     */
    private Integer xid;

    /**
     * 市ID
     */
    private Integer yid;

    /**
     * 县ID
     */
    private Integer zid;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 删除标识
     */
    @TableLogic
    private Integer delFlag;

    /**
     * 仓库容量
     */
    private String warehouseCapacity;
    /**
     * 剩余容量
     */
    private String warehouseUsable;

    //地址d
    @TableField(exist = false)
    private String address;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
